package com.meilai.project.controller.web.businessFlow;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.meilai.project.controller.web.businessFlow.dto.BFCustomerSearchParams;
import com.meilai.project.controller.web.businessFlow.service.BusinessFlowService;
import com.meilai.project.controller.web.businessFlow.vo.BFCustomerVO;
import com.meilai.project.dto.base.ApiResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/web/business_flow")
@Api(tags = "业务流")
public class WebBusinessFlowController {

    @Autowired
    private BusinessFlowService service;

    @GetMapping("customer_list")
    @ApiOperation(value = "项目列表分页")
    public ApiResult<Page<BFCustomerVO>> list(@ApiParam("form") BFCustomerSearchParams params) {
        Page<BFCustomerVO> vo = service.selectPageList(params);
        return ApiResult.ok(vo);
    }
}
